Skip to content

refactor(digstore-chain): consume DIG_ASSET_ID from dig-constants (#969) - #25

Merged
MichaelTaylor3d merged 2 commits into
mainfrom
refactor/digstore-chain-dig-constants
Jul 18, 2026
Merged

refactor(digstore-chain): consume DIG_ASSET_ID from dig-constants (#969)#25
MichaelTaylor3d merged 2 commits into
mainfrom
refactor/digstore-chain-dig-constants

Conversation

@MichaelTaylor3d

@MichaelTaylor3d MichaelTaylor3d commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • digstore-chain's local DIG_ASSET_ID (a406d3a9…832f81) was byte-identical to dig-constants v0.5.0's canonical value.
  • Replaced the local hex_literal::hex! definition with pub use dig_constants::DIG_ASSET_ID; re-exported at the SAME path (digstore_chain::dig::DIG_ASSET_ID) — existing importers unaffected.
  • Added dig-constants = "0.5" to digstore-chain/Cargo.toml.
  • No local DIG_ASSET_ID hex literal remains in digstore-chain (grep-verified).
  • Audited this repo for a local dighub-core copy — none exists, so no further work there.
  • Bumped workspace version 0.15.00.15.1 (patch — re-export only, no public API change).

Verified

  • cargo build --locked -p digstore-chain — green
  • cargo test -p digstore-chain --lib — 236 passed, 0 failed, 3 ignored (includes dig::tests::dig_constants_match_chip35_cross_system_contract, which now transitively checks dig-constants too)
  • cargo fmt -p digstore-chain -- --check — clean
  • cargo clippy -p digstore-chain --all-targets --all-features -- -D warnings — clean

Note

digstore-cli/src/branding.rs has a separate DIG_ASSET_ID_HEX: &str literal (used for display/deep-links). Out of scope for this ticket (#969 scoped to digstore-chain), but flagged as a residual byte-drift risk for a future follow-up.

Refs #969

🤖 Generated with Claude Code

MichaelTaylor3d and others added 2 commits July 18, 2026 08:12
WIP stub — work in progress.

Co-Authored-By: Claude <noreply@anthropic.com>
digstore-chain defined its own local DIG_ASSET_ID hex literal, byte-identical
to dig-constants v0.5.0's canonical value. Re-export it from dig-constants at
the same `digstore_chain::dig::DIG_ASSET_ID` path instead, so the ecosystem
has one source of truth (mirrors the chip35 #971 fix) and existing importers
are unaffected.

No dighub-core copy exists in this repo, so no further audit is needed there.

Co-Authored-By: Claude <noreply@anthropic.com>
@MichaelTaylor3d
MichaelTaylor3d marked this pull request as ready for review July 18, 2026 15:38
@MichaelTaylor3d
MichaelTaylor3d merged commit 9467bd5 into main Jul 18, 2026
10 of 11 checks passed
@MichaelTaylor3d
MichaelTaylor3d deleted the refactor/digstore-chain-dig-constants branch July 18, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant